<?php
/*
 * Admin Jump Page (FST)
 * Abe Yang <abeyang@cal.berkeley.edu> (c) 2007
 * http://code.google.com/p/flickrsetsbytag/
 *
/* ---------------------------------------------------------------------------------- */

require('../fst.class.php');

$fst = new FST();
$title = 'Admin Jump Page (FST)';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo $title; ?></title>
	
	<link rel="stylesheet" href="admin.css" type="text/css" media="screen" charset="utf-8" />

</head>

<body>
<?php $fst->showAdminConsole() ?>

<div id="container">
	<h1><?php echo $title; ?></h1>
	This page allows you to manually tamper with the caching process of Flickr Sets by Tag. However, please remember: with great power comes great responsibility; do not use this page if you do not know what you are doing. =D

	<div class="separator">
		<h2>Update Album</h2>
		<form action="../scripts/update.php" method="get" accept-charset="utf-8">
			<?php echo $fst->showAllAlbumsListWidget() ?>
			<input type="hidden" name="type" value="updateAlbum" id="type" />
			<input type="submit" value="Update &rarr; &nbsp;" />			
		</form>
		<p>This is useful when you add/remove photos or modify tags to an older album, and you need the change to be reflected on the webpage.</p>
		<p><strong>Chances are, this is the action you're looking for.</strong></p>
	</div>
	
	<div class="separator">
		<h2>Update Album and List</h2>
		<form action="../scripts/update.php" method="get" accept-charset="utf-8">
			<?php echo $fst->showAllAlbumsListWidget() ?>
			<input type="hidden" name="type" value="updateAlbumAndList" id="type" />
			<input type="submit" value="Update &rarr; &nbsp;" />			
		</form>
		<p>This is useful when you modify the primary photo of an album, or when you change the title and/or description of the album.</p>
	</div>
	
	<div class="separator">
		<h2>Update List</h2>
		<form action="../scripts/update.php" method="get" accept-charset="utf-8">
			Flickr ID: <input type="text" name="album" value="" id="album" size="30" />
			<input type="hidden" name="type" value="updateAlbumAndList" id="type" />
			<input type="submit" value="Update &rarr; &nbsp;" />			
		</form>
		<p><strong>If you cannot find the album in the dropdown lists, you'd want to take this action.</strong> This happens when a new album is added, but not yet cached by the system.</p>
		
	</div>

</div> <!-- end #container -->

</body>
</html>
